import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

var router= new Router({
  routes: [
    {
      path:'/',
      name:'index',
      component:()=>import("@/components/index"),
      children:[

        {
          path:'ticket',
          name:'ticket',
          component:()=>import("@/components/ticket")
        },
        {
          path:'house',
          name:'house',
          component:()=>import("@/components/house")
        },
        {
          path:'city',
          name:'city',
          component:()=>import("@/components/city")
        },
        {
          path:'car',
          name:'car',
          component:()=>import("@/components/car")
        },
        {
          path:'user/normal',
          name:'usernormal',
          component:()=>import("@/components/usernormal")
        },
        {
          path:'hotel',
          name:'hotel',
          component:()=>import("@/components/hotel")
        },
        {
          path:'shopgoods',
          name:'shopgoods',
          component:()=>import("@/components/shopgoods")
        },

      ]
    },
    {
      path:'/updateticket',
      name:'updateticket',
      component:()=>import("@/components/updateticket")
    },
    {
      path:'/login',
      name:'login',
      component:()=>import("@/components/login")
    },
    {
      path:'/regist',
      name:'regist',
      component:()=>import("@/components/regist")
    },
    {
      path:'/useradmin',
      name:'useradmin',
      component:()=>import("@/components/useradmin")
    },
    {
      path:'/updatecar',
      name:'updatecar',
      component:()=>import("@/components/updatecar")
    },
    {
      path:'/updatehotel',
      name:'updatehotel',
      component:()=>import("@/components/updatehotel")
    },

  ]
})
export default router
